package com.dhcc.test.listener;

import javax.servlet.ServletContextAttributeEvent;
import javax.servlet.ServletContextAttributeListener;

/**
 * @description ：MyServletContextAttributeListener
 * ServletContextAttributeListener：属性事件监听新增属性、删除属性、覆盖属性
 * @date ：2016年11月28日 下午8:29:54
 * @author ：WangYG
 */
public class MyServletContextAttributeListener implements ServletContextAttributeListener {

    @Override
    public void attributeAdded(ServletContextAttributeEvent arg0) {
        System.out.println("ServletContextAttributeListener_ attributeAdded : "+ arg0.getName());
    }

    @Override
    public void attributeRemoved(ServletContextAttributeEvent arg0) {
        System.out.println("ServletContextAttributeListener_ attributeRemoved : "+ arg0.getName());
    }

    @Override
    public void attributeReplaced(ServletContextAttributeEvent arg0) {
        System.out.println("ServletContextAttributeListener_ attributeReplaced : "+ arg0.getName());
    }

}
